< h e a d > 
 
         < t i t l e > S c o p i n g   E x a m p l e < / t i t l e > 
 
         < s c r i p t   t y p e = " t e x t / j a v a s c r i p t " > 
 
         v a r   a N e w V a r i a b l e   =   " c    p h m   v i   t o  n   c c . " ; 
 
         f u n c t i o n   d o S o m e t h i n g ( i n c o m i n g B i t s )   { 
 
                 a l e r t ( " B i n   t o  n   c c   b  n   t r o n g   h  m :   "   +   a N e w V a r i a b l e ) ; 
 
                 a l e r t ( " B i n   c c   b   b  n   t r o n g   h  m :   "   +   i n c o m i n g B i t s ) ; 
 
         } 
 
 
 
         < / s c r i p t > 
 
 
 
 < / h e a d > 
 
 < b o d y > 
 
 < s c r i p t   t y p e = " t e x t / j a v a s c r i p t " > 
 
 
 
         d o S o m e t h i n g ( " c    p h m   v i   c c   b . " ) ; 
 
         a l e r t ( " B i n   t o  n   c c   b  n   n g o  i   h  m :   "   +   a N e w V a r i a b l e ) ; 
 
         a l e r t ( " B i n   c c   b   b  n   n g o  i   h  m :   "   +   i n c o m i n g B i t s ) ; 
 
         
 
 < / s c r i p t > 
 
 < / b o d y > 
 
 
 
 